package com.jic.product.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.product.entity.ProductSaleAreaRelation;

import java.util.List;

/**
* 商品销售区域关联表
* @author : 
* @email : 
* @since : 2020-01-10 07:03:01
* @version : v1.0.0
*/
public interface ProductSaleAreaRelationService {

    long insert(ProductSaleAreaRelation productSaleAreaRelation);

    long delete(Long id);

    long update(ProductSaleAreaRelation productSaleAreaRelation);

    ProductSaleAreaRelation queryByPrimaryKey(Long id);

    List<ProductSaleAreaRelation> query(ProductSaleAreaRelation productSaleAreaRelation);

    PageResult<ProductSaleAreaRelation> queryPage(ProductSaleAreaRelation productSaleAreaRelation, Page pageQuery);

   //通过商品id 查询销售区域
   List<ProductSaleAreaRelation> queryByProductId(Long productId);
}